<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>
	<script type="text/javascript" src="/dist/js/subPages/lineTime.js"></script>
	<!-- 数据表格 -->
	<table id="lineTimeDg" class="easyui-datagrid"
		data-options="url:'./../lineTime/query',rownumbers:true,toolbar:'#lineTimeDgTbar',
		pageSize:20,pagination:true,striped:true,fit:true,fitColumns: true,singleSelect: false, selectOnCheck: false">
		<thead>
			<tr>
				<th data-options="field:'line_id',width:80,hidden: true">线路id</th>
				<th data-options="field:'driver_id',width:80,hidden: true">司机id</th>
				<th data-options="field:'car_id',width:80,hidden: true">车辆id</th>
				<th data-options="field:'driving_state',width:80,hidden: true">行驶状态</th>
				<th data-options="field:'line_station_sort',width:80,hidden: true">行驶状态</th>
				
				<th data-options="width:80, checkbox: true">全选/反选</th>
				<th data-options="field:'id',width:80">编号</th>
				<th data-options="field:'line_name',width:80">线路名称</th>
				<th data-options="field:'real_name',width:80">司机姓名</th>
				<th data-options="field:'car_num',width:80">车牌</th>
				<th data-options="field:'depart_time',width:80">出发时间</th>
				<th data-options="field:'arrival_time',width:80">预计到站时间</th>
				<th data-options="field:'driving_state_name',width:80">行驶状态</th>
				<th data-options="field:'line_station_sort_name',width:80">刚刚过去的站</th>
				<th data-options="field:'remark',width:80">备注</th>
				<th data-options="field:'create_time',width:80">创建时间</th>
				<th
					data-options="field:'is_check',width:80,formatter: common.is_checkFormatter">是否有效</th>
			</tr>
		</thead>
	</table>
	
	<!-- 按钮 -->
	<div id="lineTimeDgTbar">
		<table width="100%">
			<tr>
				<td align="left">
					&nbsp;&nbsp;线路名：&nbsp;&nbsp;
					<input id="line_nameParam" name="line_name" class="easyui-validatebox" style="width: 150px;">
					&nbsp;&nbsp;司机名：&nbsp;&nbsp;
					<input id="driver_nameParam" name="driver_name" class="easyui-validatebox" style="width: 150px;">
					&nbsp;&nbsp;车牌号：&nbsp;&nbsp;
					<input id="car_numParam" name="car_num" class="easyui-validatebox" style="width: 150px;">
					&nbsp;&nbsp;行驶状态：&nbsp;&nbsp;
					<input id="driving_stateParam" class="easyui-combobox" name="driving_state" data-options="
									valueField:'code',textField:'name',url:'./../dictionary/selectByCode?code=26',
									loader: common.comboBoxLoader,
									onBeforeLoad: function(param){
										param.page = 0;param.rows = 100; 
									} "/> 
					&nbsp;&nbsp;所属公司：&nbsp;&nbsp; 
					<input id="company_idParam" class="easyui-combobox" name="company_id" data-options=" 
									valueField:'id',textField:'name',url:'./../company/query',
				                    loader: common.comboBoxLoaderPage, editable: false,
				                    onBeforeLoad: function(param){
				                        param.page = 1;param.rows = 100;
				                    } "
									style="width: 100px;" />
				</td>
				<td align="right" width="280px"></td>
				<td align="right" width="10px">&nbsp;</td>
			</tr>
			<tr>
				<td>
					&nbsp;&nbsp;起始时间：&nbsp;&nbsp;
	               	<input id="startParam" name="start" class="Wdate" type="text" style="width: 172px" onFocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})"/>
	               	&nbsp;&nbsp;终止时间：&nbsp;&nbsp;
	               	<input id="endParam" name="end" class="Wdate" type="text" style="width: 172px" onFocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})"/> 
					<a class="easyui-linkbutton" href="javascript:void(0);" iconCls="icon-search" plain="true" id="query">查询</a>
					<a class="easyui-linkbutton" href="javascript:void(0);" plain="true" name="today" id="today">今天</a> 
					<a class="easyui-linkbutton" href="javascript:void(0);" plain="true" name="yesterday" id="yesterday">昨天</a> 
					<a class="easyui-linkbutton" href="javascript:void(0);" plain="true" name="thisWeek" id="thisWeek">本周</a> 
					<a class="easyui-linkbutton" href="javascript:void(0);" plain="true" name="thisMonth" id="thisMonth">本月</a>
				</td>
				<td align="right" width="280px">
					<a class="easyui-linkbutton" href="javascript:void(0);" iconCls="icon-edit" plain="true" id="update">修改</a>
					<a class="easyui-linkbutton" href="javascript:void(0);"
					iconCls="icon-remove" plain="true" id="delete">删除</a></td>
				<td align="right" width="10px">&nbsp;</td>
			</tr>
		</table>
	</div>
	
	<!-- 修改班次 -->
	<div id="lineTimeDlg" class="easyui-dialog"
		style="width: 300px; height: 360px;"
		data-options="resizable:true,modal:true" closed="true"
		buttons="#lineTimeDlgBtn">
		<div style="background: #fafafa; padding: 15px;" align="center"
			id="nomap">
			<form id="lineTimeFm" method="post">
				<input type="hidden" name="id">
				<input type="hidden" name="line_id">
				<input type="hidden" name="driver_id">
				<input type="hidden" name="car_id">
				<input type="hidden" name="driving_state">
				<input type="hidden" name="line_station_sort">
				<table style="padding: 10px 0px;">
					<tr>
						<th>线路名称:</th>
						<td><input type="text" class="easyui-validatebox" name="line_name" id="line_name" readonly="readonly"
							style="width: 140px;" /></td>
					</tr>
					<tr>
						<th>司机姓名:</th>
						<td><input class="easyui-validatebox"
							data-options="required:true" type="text" name="real_name" readonly="readonly"
							id="real_name" style="width: 140px;" />
						</td>
					</tr>
					<tr>
						<th>车牌:</th>
						<td><input class="easyui-validatebox" type="text" name="car_num" id="car_num" readonly="readonly"
							style="width: 140px;" /></td>
					</tr>
					<tr>
						<th>出发时间:</th>
						<td>
<!-- 						<input class="Wdate"  -->
<!-- 						data-options="required:true" -->
<!-- 							type="text" id="depart_time" name="depart_time" -->
<!-- 							style="width: 140px" maxlength="10" size="20" -->
<!-- 							 readonly="readonly" /> -->
						<input style="width: 140px" id="depart_time" name="depart_time" class="Wdate" type="text"  onFocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})"/>
						</td>
					</tr>
					<tr>
						<th>预计到达时间:</th>
						<td>
<!-- 						<input class="Wdate"  -->
<!-- 						data-options="required:true" -->
<!-- 							type="text" id="arrival_time" name="arrival_time" -->
<!-- 							style="width: 140px" maxlength="10" size="20" -->
<!-- 							 readonly="readonly" onfocus="WdatePicker({skin:'whyGreen',dateFmt:'yyyy-MM',minDate:'%y-%M',maxDate:'3008-12-20'})" /> -->
							 <input style="width: 140px" id="arrival_time" name="arrival_time" class="Wdate" type="text"  onFocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})"/>
						</td>
					</tr>
					<tr>
						<th>行驶状态:</th>
						<td><input id="driving_state" class="easyui-combobox"
							name="driving_state" style="width: 144px;" data-options="valueField:'code',
											 textField:'name',
											 url:'./../dictionary/selectByCode?code=26',
											 loader: common.comboBoxLoader,
											 onBeforeLoad: function(param){
											 								param.page = 0;
											 								param.rows = 100;
											 								}
											 "/></td>
					</tr>
					<tr>
						<th>刚刚过去的站:</th>
						<td><input id="line_station_sort_name" class="easyui-validatebox" readonly="readonly"
							name="line_station_sort_name" style="width: 140px;"/>
						</td>
					</tr>
					<tr>
						<th>备注:</th>
						<td><textarea rows="2" name="remark" style="width: 138px;"></textarea>
						</td>
					</tr>
				</table>
			</form>
		</div>
		<div id="lineTimeDlgBtn">
			<a href="#" class="easyui-linkbutton" iconCls="icon-ok">确定</a> <a
				href="#" class="easyui-linkbutton" iconCls="icon-cancel">取消</a>
		</div>
	</div>
</body>
</html>